package com.future.enable;

import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor;

/**
 * AbstractBeanFactoryPointcutAdvisor ：通知器用来组织 拦截器(AOP动态类的增强点) 和 切点
 */
public class AsyncAdvisor extends AbstractBeanFactoryPointcutAdvisor {

    private Pointcut asyncPointcut;

    public AsyncAdvisor(Pointcut asyncPointcut) {
        this.asyncPointcut = asyncPointcut;
    }

    @Override
    public Pointcut getPointcut() {
        return this.asyncPointcut;
    }
}
